import Account from '@/service/account'
import User from '@/service/app/user'

class AccountPerm {
  static isAdmin () {
    return Account.getUser().admin
  }

  static isOperator () {
    let type = Account.getUser().type
    return type === User.types.OPERATOR
  }

}

export default AccountPerm
